<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MQ</title>
<link href="../css/mq.css" rel="stylesheet" type="text/css" />
</head>

<body>

<!--------------------------------------- -->
<div id="contentMain">
    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="TableStyle">
  <tr class="TrTitleBg-2">
    <td width="80px">建议时间</td>
    <td width="300px">建议内容</td>
    <td width="80px">回复时间</td>
    <td width="300px">回复内容</td>
    <td width="80px">操作</td>
  </tr>
  <s:iterator value="suggestionList">
  <tr class="TrWhiteBg">
    <td>${time }</td>
    <td>${content }</td>
    <td>${replyTime }</td>
    <td>${reply } </td>
    <td><a href="detailSuggestion.do?id=${id }">编辑</a>&nbsp;&nbsp;<a href="deleteSuggestion.do?id=${id }">删除</a></td>
  </tr>
  </s:iterator>
</table>
  <div align="right" class="text_margin">
  [ <a href="listSuggestion.do?pageNum=1">首页</a> |
     <s:if test="pageNum<=1">上一页</s:if><s:else><a href="listSuggestion.do?pageNum=${backPage }">上一页</a></s:else>|
     <s:if test="pageNum>=pageCount">下一页</s:if><s:else><a href="listSuggestion.do?pageNum=${nextPage }">下一页</a></s:else> |
      <a href="listSuggestion.do?pageNum=${pageCount }">末 页</a>]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 第
	<select onchange="javascript:window.location='listSuggestion.do?pageNum='+this.value">
		<s:bean name="org.apache.struts2.util.Counter">
		<s:param name="first" value="1" />
		<s:param name="last" value="pageCount"/>
		<s:iterator>
		<option value="<s:property />"
		<s:if test="%{pageNum==(current-1)}">selected="selected"</s:if>>
		<s:property />
		</option>
		</s:iterator>
		</s:bean>
	</select>
    页 &nbsp;共${pageCount }页   
  </div>
</div>

</body>
</html>
